#include <stdio.h>

int main(int argc, char *argv[])
{
	FILE *fp = NULL;
	char str[20];
	if ((fp = fopen("test","r")) == NULL) {
		printf("can not open test!\n");
		return -1;
	}
	while(fgets(str, sizeof(str), fp)) {
		fputs(str, stdout);
	}
	fclose(fp);
	return 0;
}
